﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace EmailClient
{
    public partial class Inbox : System.Web.UI.Page
    {
        static int iDivCount;
        protected void Page_Load(object sender, EventArgs e)
        {
            iDivCount = 0;

        }
        protected void addDiv()
        {
            System.Web.UI.HtmlControls.HtmlGenericControl dynDiv =
            new System.Web.UI.HtmlControls.HtmlGenericControl("DIV");
            dynDiv.ID = "dynDivCode"+iDivCount.ToString();
            dynDiv.Style.Add(HtmlTextWriterStyle.BackgroundColor, "Gray");
            dynDiv.Style.Add(HtmlTextWriterStyle.Height, "20px");
            dynDiv.Style.Add(HtmlTextWriterStyle.Width, "300px");
            dynDiv.InnerHtml = "I was created using Code Behind";
            this.Controls.Add(dynDiv);
            iDivCount++;
        }
        
    }

}
